﻿using DDDNorthWind.Core.Bus;
using DDDNorthWind.Core.Message;

namespace DDDNorthWind.Bus
{
    public class FluentBusFactory : IFluentBusFactory
    {
        public IFluentBusWithOutMessage<TMessage> Create<TMessage>(IBus applicationBus) where TMessage : class, IMessage
        {
            return new FluentBus<TMessage>(applicationBus);
        }
    }
}